import os

from AssetCountingSystem.settings import BASE_DIR

LANGUAGE_CODE = 'zh-hans'

TIME_ZONE = 'UTC'

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'AssetCountingSystem',
        'USER': 'root',
        'PASSWORD': 'MisB130',
        'HOST': '10.8.2.101',
        'PORT': 3306
    }
}
STATIC_URL = '/static/' #此处必须，为新添加

# STATIC_ROOT = os.path.join(BASE_DIR, 'static')#此处必须，为新添加

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, "static"),#此处必须，为新添加
)

MEDIA_URL='/media/'

MEDIA_ROOT = os.path.join(BASE_DIR,'media')